<template>
  <div id="app">
    <!-- 布局 -->
    <div class="naver-header">
      <TopNavigation />
    </div>
    <div class="content">
      <router-view v-if="isRouterAlive"/>
    </div>
  </div>
</template>

<script>
import TopNavigation from "./components/TopNavigation.vue";
export default {
  name: "app",
  provide(){
    return {
      reload:this.reload
    }
  },
  data(){
    return {
      isRouterAlive:true
    }
  },
  methods: {
    reload(){
      this.isRouterAlive=false
      this.$nextTick(function(){
        this.isRouterAlive=true
      })
    }
  },
  components: {
    TopNavigation
  }
};
</script>

